Hummingbird\Core\Modules\Minify\Fonts A

Total Complexity 74
Dependencies 2
Dependents 1
Total lines 588
Lines of code 286
Logical lines of code 166
Comment lines 211
Methods 20
Properties 0

Methods 20

Method Rating Maintainability Complexity Lines of code
combine_google_fonts()
B
37 20 71
add_preload_to_fonts_in_used_css()
A
49 9 32
get_first_font_url()
S
51 7 27
add_preload_to_local_fonts()
S
52 6 23
add_font_display_swap_to_all_font_faces()
S
56 4 19
is_font_url_manually_defined()
S
61 4 13
correct_the_font_url()
S
60 4 13
get_google_font_preload_markup()
S
61 1 15
generate_preload_fonts()
S
69 2 7
find_matches()
S
69 2 7
is_valid_font_url()
S
65 2 9
get_manually_defined_fonts_for_preloading()
S
65 2 9
wphb_minify_file_content()
S
71 2 6
is_font_swap_enabled()
S
75 2 4
is_preload_enabled()
S
75 2 4
is_minify_enabled()
S
80 1 3
wphb_preload_fonts()
S
76 1 4
get_local_font_preload_markup()
S
72 1 6
get_allowed_fonts()
S
65 1 10
__construct()
S
75 1 4